package com.zggk.iroad.callback;

import android.app.Activity;
import android.app.Dialog;
import com.lzy.okgo.callback.StringCallback;
import com.lzy.okgo.request.base.Request;
import com.zggk.iroad.util.WeiboDialogUtils;

public abstract class StringDialogCallback extends StringCallback {

    private  Dialog mWeiboDialog;
    public StringDialogCallback(Activity activity) {
        mWeiboDialog = WeiboDialogUtils.createLoadingDialog(activity, "加载中...");
    }

    @Override
    public void onStart(Request<String, ? extends Request> request) {
    }

    @Override
    public void onFinish() {
        WeiboDialogUtils.closeDialog(mWeiboDialog);
    }
}
